package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.PushDataInfo;
import com.zjcode.cdcer.model.TkmSysteminitImportInfo;
import com.zjcode.cdcer.pojo.CerSysteminitImportInfo;
import com.zjcode.cdcer.model.CerSysteminitImportOfficialInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;

@Mapper
public interface CerSysteminitImportOfficialInfoMapper {

    void insertOfficeInfo(@Param("list") List<CerSysteminitImportInfo> list);

    List<LinkedHashMap<String, Object>> listAllTableData(@Param("pageData") PageData pageData);

    CerSysteminitImportOfficialInfo findDataById(@Param("id") String id);

    List<LinkedHashMap<String, Object>> queryAllExportData(@Param("pageData") PageData pageData,
                                                           @Param("idsData") Object idsData);

    int updateExtFlagByCreateBy(@Param("updatedExtFlag") String updatedExtFlag,
                                @Param("createBy") String createBy);

    List<CerSysteminitImportOfficialInfo> getNoErrorOfficeData();

    List<CerSysteminitImportOfficialInfo> queryAllData();

    List<LinkedHashMap<String, Object>> initOfficialData(Date time);

    List<LinkedHashMap<String, Object>> initOfficialDataT2(Date time, String cityid);

    List<LinkedHashMap<String, Object>> initOfficialDataByMonth(@Param("areaName") String areaName);

    int deleteDataById(@Param("id")String id);

    List<String> getInitOfficalByScreeningIdsByImport(@Param("screeningIds") List<String> screeningIdsByImport);

    int addBatchInitOfficalByInitList(@Param("list") List<CerSysteminitImportInfo> insertOfficalList);

    int addBatchInitOffical(@Param("list") List<TkmSysteminitImportInfo> tkmSysteminitImportInfos);

    List<PushDataInfo> getPushNationList(@Param("idList") List<String> idList);
}
